<template>
	<view class="page index">
		<view class="form">
			<common-input
			  title="公告标题" 
				placeholder="请填写公告标题" 
				v-model="title"
				:border-bottom="false"
			>
			</common-input>
			<common-input
			  title="发布时间" 
				placeholder="请填写发布时间" 
				v-model="time"
			>
			</common-input>
			<view class="text">
				<view class="title">
					<view>
						公告正文
					</view>
					<view class="require"></view>
				</view>
				<textarea v-model="content" placeholder="请输入公告正文" placeholder-class="place"></textarea>
			</view>
			<update-file></update-file>
		</view>
		<view class="footer">
			<button>保存</button>
		</view>
	</view>
</template>

<script>
	import commonInput from "@/components/commonInput.vue";
	import updateFile from "@/components/updateFile.vue"
	export default{
		data() {
			return{
				title: '',
				time: '',
				content:''
			}
		},
		components: {
			commonInput,
			updateFile
		},
		methods:{
			changeType(){
				
			},
			updatefiles(e){
				console.log(e,'===============')
			},
			save(){
				
			},
		}
	}
</script>

<style lang="scss" scoped>
	@import "@/common/style/customicons.scss";
	.index{
		padding: 24rpx 0;
		@include flex-c;
		.form{
			flex: 1 0 0;
			overflow: auto;
			.text{
				border-bottom: 4rpx #e5e5e5 solid;
				padding: 12rpx 30rpx;
				.title{
					font-size: 28rpx;
					color: #101010;
					padding: 0 0 16rpx;
					display: flex;
					align-items: center;
					.require{
					  height: 28rpx;
					  width: 6rpx;
					  background-color: #c24135;
					  margin-left: 10rpx;
				  }
				}
				textarea{
					font-size: 28rpx;
					color: #909090;
					height: 125rpx;
				}
				.place{
					font-size: 28rpx;
					color: #909090;
				}
			}
			&::-webkit-scrollbar{
				display: none;
			}
		}
		.footer{
			flex: 0 0 auto;
			padding: 24rpx 30rpx;
			@include flex-r-between-start;
			button{
				@include button;
				color: #fff;
				height: 60rpx;
				width: 100%;
				background-color: #198AFA;
				line-height: 60rpx;
				font-size: 28rpx;
			}
		}
	}
</style>